//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.baidu.trace.api.bos;

import java.io.File;
import java.io.InputStream;

public final class BosPutObjectRequest extends BosObjectRequest {
    private File a = null;
    private InputStream b = null;
    private byte[] c = null;
    private String d = null;
    private long e = 0L;

    public final File getFile() {
        return this.a;
    }

    public final void setFile(File var1) {
        this.a = var1;
    }

    public final InputStream getStreamData() {
        return this.b;
    }

    public final void setStreamData(InputStream var1) {
        this.b = var1;
    }

    public final byte[] getByteArray() {
        return this.c;
    }

    public final void setByteArray(byte[] var1) {
        this.c = var1;
    }

    public final String getStringData() {
        return this.d;
    }

    public final void setStringData(String var1) {
        this.d = var1;
    }

    public final long getObjectSize() {
        return this.e;
    }

    public final void setObjectSize(long var1) {
        this.e = var1;
    }

    private BosPutObjectRequest(int var1, long var2, String var4, BosObjectType var5, File var6, InputStream var7, byte[] var8, String var9) {
        super(var1, var2, var4, var5);
        this.a = var6;
        this.b = var7;
        this.c = var8;
        this.d = var9;
    }

    public static BosPutObjectRequest buildFileRequest(int var0, long var1, String var3, BosObjectType var4, File var5) {
        return new BosPutObjectRequest(var0, var1, var3, var4, var5, (InputStream)null, (byte[])null, (String)null);
    }

    public static BosPutObjectRequest buildStreamReqeust(int var0, long var1, String var3, BosObjectType var4, InputStream var5) {
        return new BosPutObjectRequest(var0, var1, var3, var4, (File)null, var5, (byte[])null, (String)null);
    }

    public static BosPutObjectRequest buildByteArrayRequest(int var0, long var1, String var3, BosObjectType var4, byte[] var5) {
        return new BosPutObjectRequest(var0, var1, var3, var4, (File)null, (InputStream)null, var5, (String)null);
    }

    public static BosPutObjectRequest buildStringRequest(int var0, long var1, String var3, BosObjectType var4, String var5) {
        return new BosPutObjectRequest(var0, var1, var3, var4, (File)null, (InputStream)null, (byte[])null, var5);
    }

    public final String toString() {
        StringBuffer var1;
        (var1 = new StringBuffer("BosPutObjectRequest{")).append("file=").append(this.a);
        var1.append(", streamData=").append(this.b);
        var1.append(", byteArray=");
        if(this.c == null) {
            var1.append("null");
        } else {
            var1.append('[');

            for(int var2 = 0; var2 < this.c.length; ++var2) {
                var1.append(var2 == 0?"":", ").append(this.c[var2]);
            }

            var1.append(']');
        }

        var1.append(", stringData='").append(this.d).append('\'');
        var1.append(", objectSize=").append(this.e);
        var1.append('}');
        return var1.toString();
    }
}
